<template>
  <div class="app-container">
    <!--根组件分三块-->
    <header class="mui-bar mui-bar-nav tab-bar">
	    <h1 class="mui-title tab-bar">项目尝试</h1>
	 </header>
	 <transition>
  		 <router-view></router-view>
     </transition>
    <nav class="mui-bar mui-bar-tab">
		<router-link to="/home" class="mui-tab-item" tag="a">
			<span class="mui-icon mui-icon-home"></span>
	        <span class="mui-tab-label">首页</span>
		</router-link>
	    <router-link to="/vip" class="mui-tab-item">
	        <span class="mui-icon mui-icon-contact"></span>
	        <span class="mui-tab-label">会员</span>
	    </router-link>
	    <router-link to="/showppingcar" class="mui-tab-item">
	        <span class="mui-icon mui-icon-extra mui-icon-extra-cart">
			<span class="mui-badge">0</span>		
			</span>
	        <span class="mui-tab-label">购物车</span>
	    </router-link>
	   <router-link to="/search" class="mui-tab-item">
	        <span class="mui-icon mui-icon-search"></span>
	        <span class="mui-tab-label">搜索</span>
	    </router-link>
	</nav>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style scoped>

#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
  margin-bottom: 60px;
}
.tab-bar{
	background-color:rgb(0, 255, 221);
	color: #fff;
}
.app-container{
	padding-top:45px; 
	overflow-x: hidden;
}
.v-enter{
	opacity: 0;
	transform: translateX(100%);
}
.v-leave-to{
	opacity: 0;
	transform: translateX(-100%);
	position: absolute;
}
.v-enter-active,.v-leave-active{
	transition: all 0.5s ease;
}
</style>
